import MessageBody from './MessageBody'
import MessageType from './MessageType'
import MessageCommand from './MessageCommand'
import QueryArgument from './QueryArgument'
import PullArgument from './PullArgument'

/**
 * 如果是一条MessageType.Data型的消息，则有body;如果是MessageType.command型的，则没有body;
 */
interface Message {
    uuid:string;
    body?: MessageBody;
    type: MessageType;
    command?:MessageCommand;
    queryArgs?:QueryArgument,
    pullargs?:PullArgument
}
export default Message